package com.kay.springbootRESTful.repository;

import com.kay.springbootRESTful.entity.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author Kay
 * @Date: 2019/12/12 14:58
 */

public interface AccountRepository extends JpaRepository<Account,Integer> {
    Page<Account> findByCustomer_CustomerId(Integer customerId, Pageable pageable);
}
